﻿<%@ Control Language="C#" AutoEventWireup="true" 
  CodeBehind="BannerList.ascx.cs" Inherits="NopSolutions.NopCommerce.Web.Modules.BannerList" %>
<%@ Register TagPrefix="nopCommerce" TagName="Banner" Src="~/Modules/Banner.ascx" %>

<div class="banner-grid">
    <asp:DataList ID="dlBanners" runat="server" RepeatColumns="1" RepeatDirection="Horizontal"
        RepeatLayout="Table" ItemStyle-CssClass="item-box" EnableViewState="true">
        <ItemTemplate>
            <div class="banner-item">
              <nopCommerce:Banner ID="ctrlBanner" runat="server" BannerId='<%#Eval("BannerID") %>' CssImageClass="right-banner" />  
            </div>
        </ItemTemplate>
    </asp:DataList>
</div>